package de.herzog.bbp.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Person extends AbstractModel implements Serializable {

	private static final long serialVersionUID = -4656388415893302788L;

	private String name;
	private String strasse;
	private String ort;
	private List<String> telefon = new ArrayList<>();
	private List<String> email = new ArrayList<>();

	public Person() {
		super();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStrasse() {
		return strasse;
	}

	public void setStrasse(String strasse) {
		this.strasse = strasse;
	}

	public String getOrt() {
		return ort;
	}

	public void setOrt(String ort) {
		this.ort = ort;
	}

	public List<String> getTelefon() {
		return telefon;
	}

	public void addTelefon(String telefon) {
		this.telefon.add(telefon);
	}

	public List<String> getEmail() {
		return email;
	}

	public void addEmail(String email) {
		this.email.add(email);
	}

	public String toString() {
		return getName();
	}
}
